package cn.ajb.filemanager.vo;

import java.util.List;

/**
 * 树形结构，页面数据传输对象
 * @author weilu
 *
 */
public class TreeViewVo {
	
	public static final String ICON_FOLDER="glyphicon glyphicon-folder-open";
	
	public static final String ICON_FILE="glyphicon glyphicon-file";
	
	public static final String FILE_MANAGER_HREF = "fileManagerController/getFileManagerListByParentId?parentId=";
	
	private String text;
	
	private String icon;
	
	private String href ;
	
	private List<TreeViewVo> nodes ;
	
	private Integer id ;
	
	private Integer parent_Id;
	
	private Integer level ;
	
	private String parentStrCn;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public List<TreeViewVo> getNodes() {
		return nodes;
	}

	public void setNodes(List<TreeViewVo> nodes) {
		this.nodes = nodes;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	/*public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}*/
	
	public static String getIconFolder() {
		return ICON_FOLDER;
	}

	public Integer getParent_Id() {
		return parent_Id;
	}

	public void setParent_Id(Integer parent_Id) {
		this.parent_Id = parent_Id;
	}

	public static String getIconFile() {
		return ICON_FILE;
	}
	
	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getParentStrCn() {
		return parentStrCn;
	}

	public void setParentStrCn(String parentStrCn) {
		this.parentStrCn = parentStrCn;
	}

/*	@Override
	public String toString() {
		return "TreeViewVo [text=" + text + ", icon=" + icon + ", href=" + href
				+ ", nodes=" + nodes + ", id=" + id + ", parentId=" + parentId
				+ ", level=" + level + ", parentStrCn=" + parentStrCn + "]";
	}*/

	

	
	
}
